Skip to content

Allow to pass attrs as strings#19

Merged
Xarthisius merged 1 commit intomainfrom
fix_attrs
Feb 24, 2026
Merged

Allow to pass attrs as strings#19
Xarthisius merged 1 commit intomainfrom
fix_attrs

Conversation

@Xarthisius
Copy link
Contributor

This pull request updates the package version to 0.2.1 and introduces improvements to the handling of attributes when adding performances, increasing flexibility and robustness. The most important changes are as follows:

Version bump:

  • Updated the version from 0.2.0 to 0.2.1 in both pyproject.toml and tro_utils/__init__.py to reflect the new release. [1] [2]

Attribute handling improvements:

  • Modified the add_performance function in tro_utils/tro_utils.py to allow attributes passed as strings to be converted to TRPAttribute enum instances, improving compatibility and usability.
  • Updated the test_add_performance test to include a string attribute ("trov:InternetIsolation") in the attrs list, ensuring the new behavior is tested.

@Xarthisius Xarthisius merged commit 00c76f5 into main Feb 24, 2026
6 checks passed
@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.50%. Comparing base (c12fb47) to head (6b65a4e).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #19      +/-   ##
==========================================
+ Coverage   91.46%   91.50%   +0.03%     
==========================================
  Files           3        3              
  Lines         504      506       +2     
==========================================
+ Hits          461      463       +2     
  Misses         43       43              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant